/**
 * @file 首页 api
 * @author lishaohai
 */

import request from '@/utils/request';

// 获取本账单还款状态统计
export function getBillStatusList(params) {
    return request({method: 'get', url: '/api/charts/billStatusList/', params});
}
// 获取最近还款账单
export function getBillLatest(params) {
    return request({method: 'get', url: '/api/charts/loan/latest/', params});
}
// 更新最近还款账单
export function putBillLatest(data) {
    return request({method: 'put', url: '/api/charts/loan/latest/', data});
}

// 获取本月详细账单 趋势
export function getChartsBillMonthCashs(params) {
    return request({method: 'get', url: '/api/charts/billMonthCashs/', params});
}

// 获取年度每月还款金额统计 趋势
export function getChartsBillYearCashs(params) {
    return request({method: 'get', url: '/api/charts/billYearCashs/', params});
}
// // 获取本账单还款状态统计
// export function getBillStatusList(params) {
//     return request({method: 'get', url: '/api/charts/billStatusList', params});
// }

// 支出管理
export function getChartsExpenditureMonthLast(params) {
    return request({method: 'get', url: '/api/charts/expenditure/monthLast/', params});
}
// 支出、收入管理 排行榜
export function getChartsExpenditureRanking(params) {
    return request({method: 'get', url: '/api/charts/expenditure/ranking/', params});
}
